package com.dkm.nettysocketdemo.myWebsite.dao;

import com.dkm.nettysocketdemo.myWebsite.domain.HelmetMod;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface HelmetModMapper {
    int deleteByPrimaryKey(String pkHelmetId);

    int insert(HelmetMod record);

    int insertSelective(HelmetMod record);

    HelmetMod selectByPrimaryKey(String pkHelmetId);

    HelmetMod findById(String pkHelmetId);

    int updateByPrimaryKeySelective(HelmetMod record);

    int updateByPrimaryKey(HelmetMod record);

    List<HelmetMod> findClientId(@Param(value = "clientId") String clientId);

    List<HelmetMod> findAll(String startTime,String endTime,HelmetMod helmetMod);

    Integer rowCount(String startTime,String endTime,HelmetMod helmetMod);

    Integer updateById(@Param("pkHelmetId") String pkHelmetId,@Param("isRevison") String isRevison, @Param("date") Date date);

    Integer updateAll(@Param("pkHelmetIds") List<String> pkHelmetIds,@Param("name") String name,@Param("date") Date date);

    Integer updateGroupId(@Param("groupId") String groupId);

    List<HelmetMod> findByNull(String clientId);

    List<String> selectClientId(String clientId);

    Integer updateClient(List<String> pkHelmetId,String clientId);

    int updateGroupAll(List<String> list);
}